﻿namespace Softserve.Pottery.Manufacturing.Domains
{
    using System.Data.Services.Common;
    using System.Runtime.Serialization;
    using Softserve.Pottery.Infrastructure;
    using Softserve.Pottery.Infrastructure.Interfaces;

    [DataContract]
    [DataServiceEntity]
    public class Team : IValidatable, IDomain
    {
        #region Properties

        [DataMember]
        public int Id
        {
            get { return m_Id; }
            set { m_Id = value; }
        }

        [DataMember]
        public int MasterId
        {
            get { return m_MasterId; }
            set { m_MasterId = value; }
        }

        [DataMember]
        public int Perfomance
        {
            get { return m_Perfomance; }
            set { m_Perfomance = value; }
        }

        [DataMember]
        public double DefectPercent
        {
            get { return m_DefectPercent; }
            set { m_DefectPercent = value; }
        }
          
        #endregion

        #region Methods

        public bool Validate()
        {
            return true;
        }
        
        #endregion

        #region Fields

        private int m_Id = default(int);

        private int m_MasterId = default(int);

        private int m_Perfomance  = default(int);

        private double m_DefectPercent = default(double);

        #endregion
        
    }
}
